<div class="list4">
	<h2 style="font-size: 14px;"> 最新教师/专家评论：</h2>
	<volist name="teacher" id="vo">
	<div class="list5" style="border: 1px solid #e7e8e8;">
		<table cellpadding="0" cellspacing="0" border="0" width="650">
			<tr>
				<td colspan="2" height="25" style="background-color: #ededed;">
					<span><a href="__APP__/Teacher/Home/index/id/{$vo.UserId}" style="color: #0099FF;">
						{$vo.UserName}</a></span>
					&nbsp;({$vo.OrgName})&nbsp;日期：{$vo.CreateDate}<span style="padding-left: 10px;">评分等级：<span
						class="starDisplay">4</span></span><a id="ctl00_ContentPlaceHolder1_teacherComments_ctl00_deleteItem" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$teacherComments$ctl00$deleteItem','')"></a>
				</td>
			</tr>
			<tr>
				<td style="width: 80px; vertical-align: top;">
					<a href="__APP__/Teacher/Home/index/id/{$vo.UserId}">
						<img src="__UPFILE__/Img/Avatar/{$vo.Avatar}"
							onerror="this.src = '__IMG__/default.gif';" width="60" height="60" style="padding: 2px;
							border: 1px solid #d0e5f4;" alt="吕勤勤" /></a>
				</td>
				<td style="width: 570px;">
					<p style="line-height: 20px; text-align: left;">
						{$vo.Content}
					</p>
				</td>
			</tr>
		</table>
	</div>
	</volist>
<div style="clear:both;text-align:center">{$page}</div>

</div>
<div class="list4">
	<form name="aspnetForm" method="post" onsubmit="return dosubmit();" action="__APP__/Teacher/Project/pubProjectComment" id="aspnetForm">
	<table width="100%">
		<tbody><!--
			<tr id="ctl00_ContentPlaceHolder1_ratebar">
				<td style="text-align: right; vertical-align: middle; width: 100px;">
					评分:
				</td>
				<td>
					<input name="star1" type="radio" class="star" />
					<input name="star1" type="radio" class="star" />
					<input name="star1" type="radio" class="star" />
					<input name="star1" type="radio" class="star" />
					<input name="star1" type="radio" class="star" />
					<input type="hidden" name="ctl00$ContentPlaceHolder1$starLevel" id="ctl00_ContentPlaceHolder1_starLevel" value="3" />
				</td>
			</tr>
			-->
			<tr id="ctl00_ContentPlaceHolder1_ratebar">
				<td colspan="2" id="premit" style="color: #0099FF;text-align:center;vertical-align: middle; width: 100px;display:none">
					你无权评论
				</td>
			</tr>
			<tr>
				<td style="text-align: right; width: 100px; vertical-align: top;"> 评论内容: </td>
				<td><textarea name="comments" rows="8" cols="80" id="comments"></textarea></td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td>
					<input type="submit" name="submit" value="提交" onclick="GetScore();" id="ctl00_ContentPlaceHolder1_cmtsubmit" class="btnsubmit" />
				</td>
				<script type="text/javascript">
					function dosubmit(){
						//去除所有的空白样式
						var con = $('#comments').val().replace(/\s/ig,'');
						var pid = {$Think.get.projectid};
						var pub = {$project.IsPublic};//是否公开
						var premit = {$premit};
						if(pub == 0){
							if(premit == 1){
								if(con == ''){
									alert('内容不能为空！');
								}else{
									$.ajax({
										url:'__APP__/Teacher/Project/pubProjectComment',
										type:'POST',
										data:{content:con,projectid:pid},
										dataType:'json',
										success:function(data){
												alert(data.info);
												window.location.reload();
										},
										error:function(){
											alert('提交失败！');
										}
									});
								}
							}else{
								$('#premit').css('display','block');
								alert('无评论权限！');
							}
						}else{
							if(con == ''){
								alert('内容不能为空！');
							}else{
								$.ajax({
									url:'__APP__/Teacher/Project/pubProjectComment',
									type:'POST',
									data:{content:con,projectid:pid},
									dataType:'json',
									success:function(data){
										if(data.status == -2){
											alert(data.info);
										}else{
											alert(data.info);
											window.location.reload();
										}
									},
									error:function(){
										alert('提交失败！');
									}
								});
							}
						}
						return false;
					}
				</script>
			</tr>
		</tbody>
	</table>
	</form>
</div>